package com.askinhand.bean;
// default package

import java.sql.Timestamp;


/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private User userByFromId;
     private User userByToId;
     private String content;
     private String isRead;
     private Timestamp time;
     private String title;


    // Constructors

    /** default constructor */
    public Message() {
    }

    
    /** full constructor */
    public Message(User userByFromId, User userByToId, String content, String isRead, Timestamp time, String title) {
        this.userByFromId = userByFromId;
        this.userByToId = userByToId;
        this.content = content;
        this.isRead = isRead;
        this.time = time;
        this.title = title;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public User getUserByFromId() {
        return this.userByFromId;
    }
    
    public void setUserByFromId(User userByFromId) {
        this.userByFromId = userByFromId;
    }

    public User getUserByToId() {
        return this.userByToId;
    }
    
    public void setUserByToId(User userByToId) {
        this.userByToId = userByToId;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public String getIsRead() {
        return this.isRead;
    }
    
    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public Timestamp getTime() {
        return this.time;
    }
    
    public void setTime(Timestamp time) {
        this.time = time;
    }

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
   








}